@model IEnumerable<LastoRevival.Service.Contracts.Models.PreviewForumModel>


@{ ViewBag.Title = LanguageLoader.GetWord("ForumIndexPageTitle"); }
@{ this.AddCurrentBreadCrumb(LanguageLoader.GetWord("ForumIndexBreadCrumbText")); }

<ul class="forumList">
	
	@if (Model.Count() == 0) 
	{
		<li id="noForumsMessage">@LanguageLoader.GetWord("NoForumsFound")</li>
	}

	@foreach (var item in Model)
	{
		var forumUrl = @Url.Action("ViewForum", new { forumID = item.ForumID });
	
		<li onclick="redirect('@forumUrl')">
			<a href='@forumUrl'>@item.Title</a>
			<p class="forum-description">@Html.Encode(item.Description) &nbsp;</p>
			<p class="forumThreadCount">(@item.ThreadCount)</p>
		</li>    
	}
    
</ul>

